<div class="titleleft001"><img src="images/Folder-Home-Folder-icon.png" /><span>Menu</span></div>
<div id='cssmenu'>
<ul>
   <li class='active'><a href='index.php?action=trangchu'><span>Trang Chủ</span></a></li>
   <li><a href='index.php?action=san'><span>Sân</span></a></li>
   <li><a href='index.php?action=lichdatsan'><span>Lịch Biểu</span></a></li>
   <li class='has-sub'><a href='#'><span>Đặt Sân</span></a>
      <ul>
      <?php 
	$strSQL = "SELECT * FROM san";
$result = mysql_query($strSQL);
while($r3 = mysql_fetch_assoc($result))
{
	$id=$r3["SanID"];
?>
         <li><a href='?action=datsan&sanid=<?php echo "$id"; ?>'><span><?php echo "$id";?></span></a>
         </li>
<?php
}
?>
		 <li><a href='?action=datsantheogio'><span>Đặt Sân Theo Giờ</span></a>
         </li>
      </ul>
   </li>
   <li class='last'><a href="index.php?action=huongdan"><span>Hướng Dẫn</span></a></li>
   
</ul>
</div>